package main

import (
	"fmt"
	"time"
)

func running() {
	var times int
	//构建一个无线循环
	for {
		times++
		fmt.Println("tick", times)
		//延时1秒
		time.Sleep(time.Second)
	}
}

func main() {
	//并发执行程序
	go running()
	//接收命令行输入,不做任何事情
	var input string
	fmt.Scanln(&input)
}
